updated xsel.mod to check for Darwin first