fix segfault upon bad cmdline usage. lose the DIRSEP caharacter from real_filename. fix a spelling mistake.