Purge cruft.
Don't append #version if it's already done.