Added ability to create tmp work dirctory in current directory.