Fixed bug in ObjectFile.add_to_cmd