Using local var in open_auth_file