Some bug fixes for master
Fix daemonization for stoneridge programs