setup.sh: bugfix detecting project directory