Support headers with less varaibles than dependencies.

Sometimes dependencies are added for side-effect only
(e.g. domReady). These can be put anonymously at the end of the dependency
list without a corresponding variable. When no variable name is given,
it assumes that you want to add it without a varaible.
Fix missing dot in regexp and fix regexp replacement for save var names.