fixed file perm on pid dir