ninja: expand intermediate dir like we do product dir
ninja: expand intermediate dir like we do product dir

By using the special variable $!INTERMEDIATE_DIR, the resulting
value can vary per gyp target.  This is a necessary prerequisite
for cross-compiling, where a given target needs a different
intermediate for host vs target builds.

Also invert the default value for qualified, since most callers
want qualified paths.

Review URL: http://codereview.chromium.org/7763004
witwall/gyp,witwall/gyp,witwall/gyp,witwall/gyp,witwall/gyp