Fixed glob() return value handling in PHP 5.2.5+ w/ safety restrictions, closes #573. Added a check for cycle value to AgaviRotatingFileLoggerAppender, closes #578 (also made the code more efficient)