PackageManager: Ignore last Swift version component
PackageManager: Ignore last Swift version component

This change makes Marathon compatible with Xcode 9.1, which comes bundled
with Swift 4.0.2. This would cause Marathon to require all scripts to use
exactly that Swift version, which wouldn’t work with most dependencies.
JohnSundell/Marathon,JohnSundell/Marathon