Corrected file length check when passed by path.

Closes #10