Rewrite script for managing dotfiles.