Follow Python's os.path.normpath's handing on relative paths in more situations. - Leading './' is always stripped. - Relative paths such as `//./a` & `///a` normalize to `//a`. - Support for trailing `/..` on the end of paths. - Avoid empty paths for relative paths that would otherwise resolve to an empty string, e.g: `a/b/c/../../..` resolves to `.`.