Instead use PHYSFS_getPrefDir which does the same than the manual concatenation done before. The organization name argument is required but is not used on macOS.