Modified build script to work on both windows and linux.