Fixed -w and bugs in cance.sh and mixed.sh that didn't check curr dir for temp files correctly.