Check file size before checking content

Signed-off-by: Sven Strickroth <email@cs-ware.de>