fixed a bug in handling the -c option and non-regular files. It hadn't