Set the cwd to the file's directory so some linters can pick up config files.