Handle share dir more gracefully