Fixed build script to work without config file