Properly check permissions before scanning a collection.
Added missing permissions check in dbutil:scan-resources to avoid error.
templates:surround: display a proper error message or ignore it if a template could not be found.
Update ace
Increment version to 0.3.8.