Allow dir to be passed to setup_sources.sh