remove empty dirs (again)
'service' does not work for agent, will investigate later