Exception thrown on unreadable directories under PHP 5.5 (PHP now throws an exception, backwards incompatible change)