Fix file regex so that it doesn't match unintended things