Initial commit of build script
fix execution of sendToBuild, file mode
no need to set auth dir permissions
Fixed check_updates. Check from dashboard now works.