check stash dir before deploy

avoid to deploy with isolated source only