fix a bug which `motion update --cache-version=X' is broken

http://hipbyte.myjetbrains.com/youtrack/issue/RM-408