Fixed up file checks.