With this slight modification, the mailsync script automagically checks if there is an mbsyncrc file in $HOME/.config/isync/ to comply with the XDG Base Directory Specification, but also give the user a choice of where to place the configuration.