Fix bookmarks-to-shell support.

 - defadvice was wrong
 - bash doesn't like '-' chars in variables names, so replace with '_'