core/gcc: fix library existence check

Oops...

Signed-off-by: Paul Burton <paulburton89@gmail.com>