Add files to git instead of listing them at commit command

This allows to add new files from pre commit scripts.

Fixes #308.