sanitize tests/run-tests.el

* don't use defvar when let is enough
* use built-in functions to create paths
* add /path/to/magit/../DEPENDENCY to load-path
* test whether dirs exist before adding to load-path