fix search for hsenv directories