Improving phantomjs logging
Also handling a wird issue with logfiles with dashes.