in reply to Insecure dependency error and $ENV{'PATH'}
I don't see where you are getting $branch from - that could be your problem.
/J\