Use lstrip to get rid of leading slashes, because in some cases the paths have already been replaced.
Merge pull request #431 from alexkiro/master

Fix Issue #430.