Create pids and work directories

If pids and work directories are not sub-directories of nexus_home, the recipe will fail. This commit fixes it.