For OSX added possibility of using external keychain file.