Fix for bug ID 3148

http://kiwitrees.net/bug-reporting/new-media-folder-does-not-show/
Remove old code
Cannot calculate days in month for dates with no year
Cleaner test for invalid regular expressions