Changed setup script to work with submodules