Fix shared dirs.