Support additional env vars when running npm test scripts.
Fix pattern of Ghost functional tests results files.
Formatting fixes.