Replace stderr and exit with logger
Use stand-alone function to find out if the current file comes from an ino file
Ignore *.pyc & *.swp files