behavior of .expand to honor os.path.expanduser at the time of expansion, rather than when building. expandpath function, test updates, doc updates.