Do not use RegExp to relativize pathname