initial port of local rebuild shell script to Shelly