Make bundles script more portable

Should be usable on windows now.