Change build script to allow for release and dev builds