Parallel autotest.sh master

In order to allow parallel execution of autotest.sh some modifications have been necessary.

@butonic @georgehrke @karlitschek THX