Update check.sh script

- check for rubber
- fix bug with TMP folder detect