[Uploadable] fix for problem when path ends by "/"

If your path is "upload/image/platform/" code will return "upload/image/platfor".
I hope that this PR will be accepted because it fix concrete mistake.