remove double file endings when generating build profile
fix shim definition in build profile, where it would be an array instead of an object