Fix meta_data.share_dir when not installing
(#547)