[tool] make script runnable on linux