Fixed string length for GetPathDirectory
Fixed DateTimeName for .flv output

Also works with directory names containing dots (see <http://obsproject.com/forum/viewtopic.php?f=6&t=8967>)