API:
get_path_or_local()
Check if a path exists, if not check if the basename exists, if not raise an error.
The path to check.
The path to use.
If neither the path nor the basename exist.