[#943] Fix Autotest Connection Refused - Also when Running in test mode

The previous committed fix (https://github.com/playframework/play1/commit/b13b53dd6a162756310e4051671b54ce389394ae) does not work if you want to auto run the test in prod mode.
See http://play.lighthouseapp.com/projects/57987/tickets/943