Added another fix to daemon stuff in compile script