VCS: Disable file actions for directories

Directory is used as current file in case a VCS editor is open

Change-Id: Ibf4e8a1f69cb1b618af84461ecebcc65f933e2ed
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>