grc: fix to allow grcc to execute in headless mode