Added -x flag to rmds