Make sure to pass PATH down to the shell executing libmagic.sh.

This is to include some custom locations present on Travis CI
virtual machines.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>