Extract getProjectDir to common