Adds prefix option to remove a portion of the pathname.