fix scripts to bin directories
refactor install_dotfiles function