check_shareable_path as utility