use homedir expansion instead of relative path in mkdir