make dotfile linking into a script and cater for linux