'scmdir' feature bug fix

- If the current file's directory is the same as the one containing the scm
  directory, then we fail to return '.'