Update xs_patch.sh

Added tmp dir