Fixed build script for both dev and production builds.