minor fix on optimiser.py

well, os.unlink sometimes is called to a filename that was already unlinked, so we just need to check if it still exists to unlink, otherwise kaputz!