Swift: fix MacOSX uninstallCmd logic detection