Fix daemon_dumps_core on Linux when started as root

Previous pull request updated for new autotools setup and add another autogenerated file to .gitignore.