2 functions were missing from my version of this file, get_save_dir() and get_project_data_save_dir().