Quote variables for best practices
Use double hyphen to terminate option parsing
Remove not-very-helpful Bash option headers
Check for existence of dotfiles dir