Modified the setup script to work from an arbitrary path.