Fix Issue #430. 

Use lstrip to get rid of leading slashes, because in some cases the paths have already been replaced.