Converting project to run as a linux daemon or windows service using apache commons daemon lib