fix(router): switch router to using path lib

Previously the router used its own internal path combining function.
This commit switched it over to use the join function from the path
library.