Fix regressions causing exception in oslist check and permission error where depot id is app id.