Fixing #17 and get_root in FirefoxOS