tools: Fix rcompile to work under other LANG settings
tools: Fix rcompile to work under other LANG settings

This is because the only portable way to detect whether something
is a function is to use the output of 'type'. That output is
translated (the -t option is not portable).

Fixes #1380
Closes #1382
Reviewed-by: Marius Vollmer <bb11c6e942c5cc765df5f04da146b3198127a7a3@redhat.com>

martinpitt/cockpit,moraleslazaro/cockpit,harishanand95/cockpit,stefwalter/cockpit,mvollmer/cockpit,sub-mod/cockpit,mvollmer/cockpit,sgallagher/cockpit,vbatts/cockpit,mareklibra/cockpit,mareklibra/cockpit,dperpeet/cockpit,sub-mod/cockpit,vbatts/cockpit,Thermionix/cockpit,firebitsbr/cockpit,haiyangd/cockpit_view,Armstrong1992/cockpit,deryni/cockpit,vanloswang/cockpit,SotolitoLabs/cockpit,vanloswang/cockpit,jscotka/cockpit,nmav/cockpit,kkaempf/cockpit,denysvitali/cockpit,larskarlitski/cockpit,jscotka/cockpit,moraleslazaro/cockpit,larskarlitski/cockpit,mareklibra/cockpit,deryni/cockpit,firebitsbr/cockpit,haiyangd/cockpit_view,cockpituous/cockpit,vanloswang/cockpit,deryni/cockpit,harishanand95/cockpit,larsu/cockpit,harishanand95/cockpit,evol262/cockpit,matobet/cockpit,fridex/cockpit,andreasn/cockpit,mareklibra/cockpit,moraleslazaro/cockpit,vanloswang/cockpit,fridex/cockpit,kkaempf/cockpit,fridex/cockpit,harishanand95/cockpit,kkaempf/cockpit,michalskrivanek/cockpit,deryni/cockpit,Thermionix/cockpit,larsu/cockpit,xhad/cockpit,matobet/cockpit,haiyangd/cockpit_view,stefwalter/cockpit,FireDrunk/cockpit,SotolitoLabs/cockpit,denysvitali/cockpit,maxamillion/cockpit,arilivigni/cockpit,andreasn/cockpit,sgallagher/cockpit,zigitax/cockpit,zigitax/cockpit,larskarlitski/cockpit,kkaempf/cockpit,dperpeet/cockpit,cockpituous/cockpit,firebitsbr/cockpit,mvollmer/cockpit,moraleslazaro/cockpit,firebitsbr/cockpit,vbatts/cockpit,michalskrivanek/cockpit,Armstrong1992/cockpit,petervo/cockpit,Scribery/cockpit,mareklibra/cockpit,evol262/cockpit,xhad/cockpit,Scribery/cockpit,FireDrunk/cockpit,Thermionix/cockpit,sub-mod/cockpit,firebitsbr/cockpit,andreasn/cockpit,stefwalter/cockpit,evol262/cockpit,Scribery/cockpit,Thermionix/cockpit,dperpeet/cockpit,netzvieh/cockpit,netzvieh/cockpit,FireDrunk/cockpit,moraleslazaro/cockpit,matobet/cockpit,matobet/cockpit,cockpituous/cockpit,arilivigni/cockpit,petervo/cockpit,larskarlitski/cockpit,SotolitoLabs/cockpit,moolitayer/cockpit,dperpeet/cockpit,maxamillion/cockpit,jscotka/cockpit,denysvitali/cockpit,larsu/cockpit,cockpituous/cockpit,xhad/cockpit,andreasn/cockpit,cockpituous/cockpit,andreasn/cockpit,martinpitt/cockpit,arilivigni/cockpit,jscotka/cockpit,deryni/cockpit,vbatts/cockpit,garrett/cockpit,mvollmer/cockpit,xhad/cockpit,stefwalter/cockpit,moolitayer/cockpit,darioajr/cockpit,nmav/cockpit,moolitayer/cockpit,moolitayer/cockpit,harishanand95/cockpit,denysvitali/cockpit,evol262/cockpit,cockpituous/cockpit,nmav/cockpit,vbatts/cockpit,Thermionix/cockpit,sgallagher/cockpit,SotolitoLabs/cockpit,harishanand95/cockpit,michalskrivanek/cockpit,FireDrunk/cockpit,petervo/cockpit,mareklibra/cockpit,cockpit-project/cockpit,fridex/cockpit,sub-mod/cockpit,Armstrong1992/cockpit,garrett/cockpit,jscotka/cockpit,andreasn/cockpit,larsu/cockpit,cockpit-project/cockpit,martinpitt/cockpit,stefwalter/cockpit,michalskrivanek/cockpit,zigitax/cockpit,SotolitoLabs/cockpit,martinpitt/cockpit,haiyangd/cockpit_view,larskarlitski/cockpit,Scribery/cockpit,vanloswang/cockpit,deryni/cockpit,Armstrong1992/cockpit,nmav/cockpit,netzvieh/cockpit,netzvieh/cockpit,larskarlitski/cockpit,darioajr/cockpit,sgallagher/cockpit,sgallagher/cockpit,dperpeet/cockpit,garrett/cockpit,petervo/cockpit,sgallagher/cockpit,dperpeet/cockpit,Thermionix/cockpit,evol262/cockpit,kkaempf/cockpit,arilivigni/cockpit,moolitayer/cockpit,evol262/cockpit,deryni/cockpit,sgallagher/cockpit,darioajr/cockpit,larskarlitski/cockpit,harishanand95/cockpit,sub-mod/cockpit,fridex/cockpit,petervo/cockpit,stefwalter/cockpit,michalskrivanek/cockpit,arilivigni/cockpit,SotolitoLabs/cockpit,dperpeet/cockpit,Scribery/cockpit,moraleslazaro/cockpit,andreasn/cockpit,SotolitoLabs/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,maxamillion/cockpit,larsu/cockpit,denysvitali/cockpit,matobet/cockpit,michalskrivanek/cockpit,petervo/cockpit,Scribery/cockpit,darioajr/cockpit,matobet/cockpit,maxamillion/cockpit,petervo/cockpit,jscotka/cockpit,nmav/cockpit,michalskrivanek/cockpit,xhad/cockpit,arilivigni/cockpit,zigitax/cockpit,mareklibra/cockpit,mvollmer/cockpit,haiyangd/cockpit_view,vanloswang/cockpit,xhad/cockpit,martinpitt/cockpit,cockpit-project/cockpit,larsu/cockpit,arilivigni/cockpit,fridex/cockpit,vbatts/cockpit,netzvieh/cockpit,stefwalter/cockpit,FireDrunk/cockpit,xhad/cockpit,garrett/cockpit,cockpit-project/cockpit,netzvieh/cockpit,Armstrong1992/cockpit,garrett/cockpit,darioajr/cockpit,vanloswang/cockpit,zigitax/cockpit,maxamillion/cockpit,Scribery/cockpit