Fixed perms in pid dir if it is created