Replace `$_` by `$0` because `$_` doesn't work when using `sh upgrade.sh`. Replace `bash` by `sh` because we should not depend on bash. And also remove unused `CUR_DIR` variable.
Such as we can upgrade SQLite / SQLCipher without regenerating SQLCipher / SQLite files