cmdline: fixed handling of ORIGINAL_ARGV variable

the variable is set for the aup cmdline tool, but not if autoproj is called
directly.
snapshot: make create_commit both backward and forward compatible

git update-index --cacheinfo changed between git pre- and post-2.0.
This commit adopts either the old or new way depending on the git
version