Adding LATEST_COMMIT file with correct relative path.

Fixes error introduced in #308.
Refactoring duplicate code between storage.key and storage.bucket.