Fix for paths with colons

If the path contains a colon (:) it should not be treated as an
absolute URI unless starts with http(s).