Expand tilde in paths in file module