Fixed build script to populate applications