Fixed issue with r.js optimiser failing due to misconfiguration.