Add the GIT_REV environment variable to /app/.profile.d

This allows child processes which might not have access to the
original environment to source the profile.d directory and gain
access to the information.
Merge remote-tracking branch 'origin/pr/76'
Use real revision instead of ref name: branch or tag