changed mylib.sh for more Windows support