Safely chdir, via blocks
ok scope is apparently real important.