Update setup.sh to support out-of-tree setup

Quick fix to make sure that out-of-tree setup works