Ensure path is a file before trying to lint.