thoroughly clean up post-install step for imkl to avoid lots of duplicate code