Fix bug where changing directories disables linting