Create pids and work directories
Merge pull request #69 from s-bernard/fix-dirs-creation

Create pids and work directories