Fix typo in pid and work dirs creation