fix to ensure that leftover files are cleaned up before reinstall