Added function is_shared()

Checks whether a given path is already shared.
Fixed in f679989bdaeeaeffc46a0938179fc3e93292345a