make share_dir work during install