Make mountpoint work for shared directories.