remove-snapshot: fix 'xxx is not a snapshot' issue which is caused by lake of repository initialization
snapshot: fix 'snapshot source does not exist' issue which is caused by lake of repository initialization