Fixed build script checkout issue