Writing resources should now properly check if the path is a dir or not. Also added extra debugging.
Merge branch 'master' of github.com:linkeddata/gold