adapt return value of keychain from Windows/Linux to OSX