Fix relative path issue

Updates controller.php to use the `WORKSPACE` environment variable to set the relative path of the repositories.

:smile: