loader: use join_path to search the lib directory