adjust get-ir script to work on my platform