File.expand_path(filename, directory) resolves _filename_ relative to
_directory_. If _filename_ begins with a tilde, however, it is
expanded relative to a home directory; the _directory_ argument is
silently ignored. Is this desirable? If not, would a patch be accepted
to issue a warning?