Check is correct file before checking routes.