Start moving paths handling away from main.c

This cleans up paths handling from main.c to a globally available location
in global_paths.c.