 		let process = NSProcessInfo.processInfo();
 		let edict = NSDictionary(dictionary: process.environment)
 		path = fileMGR.currentDirectoryPath
-		home = edict.objectForKey("HOME") as String
+		home = edict["HOME"] as String
 
 		//
 		// If the info.plist file exists, read it for the bundleid and set the bundleId variable.

	init(_ pattern: String) {
		self.pattern = pattern
		var error: NSError?
		self.internalExpression = NSRegularExpression(pattern: pattern, options: .CaseInsensitive, error: &error)
	}

	func test(input: String) -> Bool {

		//
		if( bundleId == "" ) {
			let path = NSBundle.mainBundle().pathForResource("info", ofType: "plist")
			let dict = NSDictionary(contentsOfFile: path!)!
			bundleId = dict["bundleid"] as String
		}

		//
