build: git autostash before switching back to master