remove leading slash from the name

This is related to #13. A few things were left in that patch. This one is a bit cleaner and simpler. Hope it gets merged.