Fixes to the service module for Ubuntu 12.04 (LTS)

Fixes #3615
Fixes #3572