Fixed handling of the current directory in url.Dir().