Fix for not running installDependencies after stashing and checking out a different repo at the second attempt