Fix issues in CmdOpen

A formatted message was missing a format argument, and comparison on
Strings was being performed with ==