Use corrected stat method.
Merge pull request #238 from rreas/freebsd-file-fix

Use corrected stat method for FreeBSD