declare share_dir so we can use it