fixed bug in start script: writing to the wrong error log