Fixed Duplicate Package Bug

Fixed an issue where it was possible to create duplicate packages if the new one has a trailing slash. 

Issue: https://github.com/rejectedsoftware/dub/issues/268