Move temp folder initialization out of environment() so it happens even when skipping the build step.

That way, when "build" is in skip_stages, post_build() doesn't fail.
Just warn about bad extents in the deprecated function, too.

Note the subtle difference in case so I can see which one is failing. :-)