Auto detect path to repo directory

Currently, repo directory, i.e. `REPO_DIR` is hardcoded, but can be easily switched to detect this path.
Moreover, the user can set an environment variable: `OSXC_REPO_DIR` to set this path to a different value.