Naive path permission check for ZF2 diagnostics