Switch URI handling to Addressable bundle (URI couldn't handle dirnames with accents and other special characters in).
Used platform-independent handling of tmp directory.