Ignore CR appended to filenames

This makes the following lines work:

OPEN1,8,15
PRINT#1,"S:DELETEME"
CLOSE1
Fix a typo (preventing scratch) and renumber
Rework cmdnames saving 66 bytes RAM
Replace a printf with log_debug