Skip anything that isn't a regular file

This excludes, among others, symlinks and hard links.

Fixes #2.