Support relative paths when parsing AMD dependencies (#102).
Cleaned up the handling of relative AMD dependencies a bit.