Fixes an issue with running build without a platform