[FIX] SSH access directory check if exists
Was only checking if file exists but we use it to check for presence of .git/.svn directories when detecting vcs, for example, so we need to detect if file or directory exists.
Was only checking if file exists but we use it to check for presence of .git/.svn directories when detecting vcs, for example, so we need to detect if file or directory exists.