File syntax check

- Fixes #630 without `relative_path_to`

@thommay, I grabbed and built off of your commit