changes to satisfy edge cases
Fixed bug in version function.  Was assuming existance of last_version file