Small bug due to Hierarchical modules

First bug due to hierarchical modules? :wink:
this should probably be `os.path.dirname(self.installdir)`?

Also, this needs to be synced with `develop`, due to other recent changes in the `impi` easyblock