refactor seed module -- detect path type: block, dir, or image