Remove leading forward slash from path if present

From certain contexts the variables path property contains a
leading slash which the parse_url function does not like. Removing
it allows the preprocess function to work (more) consistently.