added gl_check

gl_check is a mod of f-dirprecheck that adds logging and a pre_check
and a post_check for filetype checks with libmagic