Handle importing directories with a trailing slash.

This only is necessary when the zend_path points to a directory that
contains a folder called 'tests' and the path was supplied with a
trailing slash.