Fix #339 - fs.rename tests fail on the browser