autogen: Fix the name of the source file it checks

The autogen script needs a source file to verify that it is being run
from the right directory. Previously this was using main.c but that
file no longer exists so this patch makes it use rig-engine.c
Update the .gitignore

This adds rig-slave, rig-device and the files generated by protobuf to
the .gitignore