and undefined, if workdir is not defined
Merge pull request #69 from georgebyelas/master

and undefined, if workdir is not defined