Make bundle script platform independent