Update check-build.js

cross plattform compatibility