Patched build script for dev