Fix dotfile restore issue