Make the Router to work even in a subdirectory. Fix #406.