carat.sh: add -w option, change default behavior