Fix the r.js "optimized" file using regex

Fixes the "optimized" concatenation of the Require.js by removing the extensions from their define statements.