Fixed checkout source script to correctly checkout build files