Move install_xcode function to setup script