tests: Move helper funtion to common.inc

Also fixes md5fh's fd leak.
Handle ENCFS6_CONFIG set to non-existing file

This used to give the confusing error

	Found config file %s, but failed to load - exiting
Log offending filename "too small" errors
tests: explicitely verify that the reverse mount worked