dev.sh - `cd dirname $0` compatible with `./dev.sh` and `. dev.sh`