Added function is_shared()

Checks whether a given path is already shared.