pek1d - added if workdir doesn't exist, create it