[Uploadable] Problem with path which ends with directory separator "/"

Problem is in this file "DoctrineExtensions/lib/Gedmo/Uploadable/UploadableListener.php" on line "304". This part "substr($path, 0, strlen($path) - 2)" needs to be replaced with "substr($path, 0, strlen($path) - 1)".

For this I've created same issue (#559).