Added path.expand to all H5 manipulation functions, to deal with tilde's.