Updated setup script to determine its own location