Added version/platform filtering to generated script