Fixed to properly ignore all object files and files automatically generated by autotools.