expand ~ also when access modules dir