Fix pathnames to work in deployment too.  Add logging for non-debug mode.