[kelvin, james] #60 clean up staging.sh and update file permissions