Fix use-after-free in browser

browser_load frees browser_dir but ptr, which points to a substring of
browser_dir, is used afterwards.
Merge pull request #88 from mahkoh/use-after-free

Fix use-after-free in browser