Added exception thrown at build time when outputDirectory is missing.