use inotifywait to work around race condition

It was passible that the keyfile was created too late, but the password
agent was not ready yet. Work around this by waiting for a new request.