Updated build script to include dev flag