Fix bookmarklet config substitution

There were two unrelated problems preventing this from working:

1) Declaring a dependency on the config when it doesn't exist causes redo to
   get very unhappy. The build dependency will now only be added if the config
   file exists.

2) Newlines in sed substitutions are a bad idea...