Added creation of own pid-directory