Fix #482, catch exception when guessing IM path.