Fixed use of repository alias names containing spaces

All spaces are replaced by an underscore
Fixed logging of first message

The file handle for the first message log was not available at the time
Fixed make test Makefile target

Don't remove the .revision file as part of make test because
this conflicts with running make valid in parallel as done
on jenkins. Only the make clean target should remove it
Revert "Fixed check for revision file"

This reverts commit d288c9f7b2a52f42b86023f76e0b055bcd748925.
It was not the check itself which was broken it was the fact
that running make test and make valid in parallel conflicts
with each other