* fix sid lookup issues and update copyright/license to latest format * simplify win_owner and win_share by removing unnecessary function