Enhance xsel.sh to autodetect settings