Update the script to use msysdir