data_dir: Add target parameter fo get_deps_dir()

With this parameter, get_deps_dir() will only deps folder
which contains target file/folder.

Signed-off-by: Feng Yang <fyang@redhat.com>
Merge pull request #1457 from FengYang/data_dir

data_dir: Add target parameter fo get_deps_dir()