custom purge_command: fixed vulnerability to malicious file names.

Signed-off-by: Thomas Leibovici <thomas.leibovici@cea.fr>
ignore more autogenerated files
mark executable, quote wdir defensively
Merge pull request #9 from jwm/master

Pick a couple build-related nits