Fixed the setup script to be independent of execution location.