[fix] Make script compatible with OSX