Create add_to_path function to simplify other scripts