fix workDir argument. change public to private

workDir argument is not used, and I thought this method should be private.

Please review this commit.