Improve VC support

Now, directories given as arguments are checked for being part of
repositories. Furthermore, git and svn handling is improved.

Also add Matlab support.