Make sure source is not a directory. Fixes: #53.