Add set_path function for setting default path