fixes #377 - don't allow empty cmd in AppDefinition