fix reference error with AMD-style require statements

I was seeing similar issues to #18 because some of the files being processed had require statements that did not have a string argument.