is_shared() fixes

We can assume that the path is not shared only when the path exist (file or directory) and get_shares() thrown 404 exception.
It might be better to catch `ResponseError` here and verify that the status code was indeed 404, not 400 or something else. Because if it's not 404 we still want to raise the error.
What do you think ?