   ///   not a directory.
   ///
   public func mkpath() throws -> () {
-    #if swift(<3.0)
+    #if !swift(>=3.0)
     try Path.fileManager.createDirectoryAtPath(self.path, withIntermediateDirectories: true, attributes: nil)
     #else
     try Path.fileManager.createDirectory(atPath: self.path, withIntermediateDirectories: true, attributes: nil)

  /// - Returns: the last path component without file extension
  ///
  public var lastComponentWithoutExtension: String {
    #if swift(<3.0)
    return NSString(string: lastComponent).stringByDeletingPathExtension
    #else
    return NSString(string: lastComponent).deletingPathExtension

  /// - Note: Based on `NSUUID`.
  ///
  public static func uniqueTemporary() throws -> Path {
    #if !swift(>=3.0)
    let path = try processUniqueTemporary() + NSUUID().UUIDString
    #else
    let path = try processUniqueTemporary() + NSUUID().uuidString
