Fixing keys_file existance check