Cosmetic update to Makefile to avoid errors on purge

This should avoid errors in 'purge' by checking on which kind of system we're running, and then running the appropriate commands.