The older Septuagint translation of Job makes more sense when considering that heaven is the name given to the domed firmament structure affixed to the earth at its ends:
Job 38:37 KJV | Hebrew Masoretic
Who can number the clouds in wisdom? or who can stay the bottles of heaven,
Job 38:37 LXX | Greek Septuagint
And who is He that numbers the clouds in wisdom, and has bowed the heaven to the earth?