Fix shell environment for gq-push & refresh patch after push suceeds