Handle no trailing slash in routes. Exit code 1 if build error.