Using path.relative instead of similar reinvented-wheel-like code.