updated build.py with recursive function from GlobalMissionsOnline