Check whether compilers are binary files or a wrapper script

Signed-off-by: Rodrigo Belem <rodrigo.belem@gmail.com>