moved PlatformConfig functionality to pre-build project level so running outside of cli will still work