fix alias file generation lines, add error for bad command