Create work directory in helper method for executing
Remove work directory after execution of command
Avoid removing work directory as part of commands
Merge branch 'refactor-temporary-directory-creation'