Work reasonably even if `package.directories.test` does not end with path separator

It's nice to work reasonably even if `package.directories.test` does not end with path separator.
Thanks!