fixed a bug where the length of the new version was being used when replacing the old version, resulting in overwriting an extra character or leaving an extra character if the old and new version lengths where different.
Updated version to 0.1.6