updated build script. differentiate between default and dev building