prevent config slashes from altering filepath