getting current working directory at loadKeyFile