Refactored GetProjectDir()