Update libmagic.sh script.

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