Get the filepath right.