Converts AMD define dependencies to CommonJS