Improve spec parsing.

- Stop clobbering line-comments because we were also clobbering urls.
- Correctly concatenate any define() deps with spec deps.
- Detect when the define() isn't found and throw.