#133 fix library script to run in macos and win and ubuntu