The code looks a bit less hack-ish and also now supports using path in the application bundle and not only in the documents folder. It could also help for other backends using a sandoxed filesystem.