VCSBase: fix working dir in VCSBaseClient::view()
VCSBase: fix working dir in VCSBaseClient::view()

The working directory for the job was wrong in the case where the
source argument is already a path. The fix tests file/dir nature of the
source and ensures a valid path is given to the job command.

Merge-request: 281
Reviewed-by: Tobias Hunger <012f8d714267bccc9d4766fbeace9f175fcc70c4@nokia.com>

maui-packages/qt-creator,malikcjm/qtcreator,xianian/qt-creator,azat/qtcreator,pcacjr/qt-creator,xianian/qt-creator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,pcacjr/qt-creator,maui-packages/qt-creator,dmik/qt-creator-os2,jonnor/qt-creator,hdweiss/qt-creator-visualizer,dmik/qt-creator-os2,maui-packages/qt-creator,maui-packages/qt-creator,farseerri/git_code,colede/qtcreator,danimo/qt-creator,bakaiadam/collaborative_qt_creator,kuba1/qtcreator,maui-packages/qt-creator,pcacjr/qt-creator,KDE/android-qt-creator,darksylinc/qt-creator,duythanhphan/qt-creator,richardmg/qtcreator,darksylinc/qt-creator,kuba1/qtcreator,farseerri/git_code,martyone/sailfish-qtcreator,kuba1/qtcreator,darksylinc/qt-creator,KDE/android-qt-creator,danimo/qt-creator,pcacjr/qt-creator,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,syntheticpp/qt-creator,KDAB/KDAB-Creator,richardmg/qtcreator,farseerri/git_code,amyvmiwei/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,farseerri/git_code,amyvmiwei/qt-creator,xianian/qt-creator,hdweiss/qt-creator-visualizer,colede/qtcreator,colede/qtcreator,danimo/qt-creator,Distrotech/qtcreator,dmik/qt-creator-os2,martyone/sailfish-qtcreator,jonnor/qt-creator,danimo/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,hdweiss/qt-creator-visualizer,xianian/qt-creator,hdweiss/qt-creator-visualizer,Distrotech/qtcreator,KDE/android-qt-creator,KDAB/KDAB-Creator,richardmg/qtcreator,malikcjm/qtcreator,ostash/qt-creator-i18n-uk,omniacreator/qtcreator,Distrotech/qtcreator,syntheticpp/qt-creator,ostash/qt-creator-i18n-uk,azat/qtcreator,bakaiadam/collaborative_qt_creator,martyone/sailfish-qtcreator,malikcjm/qtcreator,bakaiadam/collaborative_qt_creator,darksylinc/qt-creator,omniacreator/qtcreator,AltarBeastiful/qt-creator,bakaiadam/collaborative_qt_creator,martyone/sailfish-qtcreator,jonnor/qt-creator,omniacreator/qtcreator,pcacjr/qt-creator,azat/qtcreator,AltarBeastiful/qt-creator,xianian/qt-creator,dmik/qt-creator-os2,hdweiss/qt-creator-visualizer,omniacreator/qtcreator,renatofilho/QtCreator,jonnor/qt-creator,ostash/qt-creator-i18n-uk,martyone/sailfish-qtcreator,KDE/android-qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,jonnor/qt-creator,danimo/qt-creator,syntheticpp/qt-creator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,duythanhphan/qt-creator,bakaiadam/collaborative_qt_creator,duythanhphan/qt-creator,KDAB/KDAB-Creator,dmik/qt-creator-os2,darksylinc/qt-creator,colede/qtcreator,AltarBeastiful/qt-creator,omniacreator/qtcreator,malikcjm/qtcreator,bakaiadam/collaborative_qt_creator,richardmg/qtcreator,AltarBeastiful/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,malikcjm/qtcreator,renatofilho/QtCreator,KDE/android-qt-creator,maui-packages/qt-creator,richardmg/qtcreator,ostash/qt-creator-i18n-uk,duythanhphan/qt-creator,duythanhphan/qt-creator,renatofilho/QtCreator,KDE/android-qt-creator,KDE/android-qt-creator,richardmg/qtcreator,syntheticpp/qt-creator,Distrotech/qtcreator,ostash/qt-creator-i18n-uk,xianian/qt-creator,Distrotech/qtcreator,syntheticpp/qt-creator,kuba1/qtcreator,darksylinc/qt-creator,dmik/qt-creator-os2,duythanhphan/qt-creator,kuba1/qtcreator,AltarBeastiful/qt-creator,danimo/qt-creator,renatofilho/QtCreator,pcacjr/qt-creator,colede/qtcreator,duythanhphan/qt-creator,xianian/qt-creator,azat/qtcreator,richardmg/qtcreator,malikcjm/qtcreator,syntheticpp/qt-creator,dmik/qt-creator-os2,darksylinc/qt-creator,amyvmiwei/qt-creator,xianian/qt-creator,danimo/qt-creator,renatofilho/QtCreator,ostash/qt-creator-i18n-uk,azat/qtcreator,farseerri/git_code,Distrotech/qtcreator,xianian/qt-creator,maui-packages/qt-creator,azat/qtcreator,KDAB/KDAB-Creator,darksylinc/qt-creator,jonnor/qt-creator,farseerri/git_code,kuba1/qtcreator,omniacreator/qtcreator,KDAB/KDAB-Creator,bakaiadam/collaborative_qt_creator,danimo/qt-creator,KDE/android-qt-creator,hdweiss/qt-creator-visualizer,colede/qtcreator,amyvmiwei/qt-creator,KDAB/KDAB-Creator,colede/qtcreator,kuba1/qtcreator,pcacjr/qt-creator,malikcjm/qtcreator,farseerri/git_code,syntheticpp/qt-creator,farseerri/git_code,ostash/qt-creator-i18n-uk,renatofilho/QtCreator,omniacreator/qtcreator