metadata directory support

- incidentally adds defensive driving against null version
  in method `destination_path`