Suggested rewrite of creation of PID_PATH and DATA_DIR