Fix creation of embedded JS and CSS files on cmake based ports.

Reviewed by: Joseph Pecoraro