Fix bug in getCommandInfo and getSimilarCommandInfo that broke 'compile-flags'