Set EDX_PLATFORM_REVISION to unknown if not in a git repo.

- Set EDX_PLATFORM_REVISION to unknown if not in a git repo.
- Use the path of the configuration file to determine where the
  repository is.