Added ability to specify custom work dir (to explode file in).