Fix cleanup and install tasks

Check for existing file before removing during cleanup.
Fix typo in install task.