Expand given branch name and scm url before sending the command (better log output)
If store is null, still delete workDir.