Hi Rich,
Now it is working well, thanks! The extension .tcz should not be used in command line.
So, I changed the command from...
tc@box:/home/tc# sh ./dependencie_finder2_V0.1c.sh -d openjdk-8-jdk/ -e openjdk-8-jdk.tcz
to
tc@box:/home/tc# sh ./dependencie_finder2_V0.1c.sh -d openjdk-8-jdk/ -e openjdk-8-jdk