Only prepend basepath if it's not already prepended.