Restore previous CONTEXT_DIR logic, making sure we generate an absolute path as it seems necessary for Kaniko. Proposed logic would NPE when CI_PROJECT_DIR is not defined (i.e. outside GitLab CI)
CI_PROJECT_DIR