fix deploy.sh

stash changes (if any) before doing anything; also, restore at the end