Fix debian regression bug and add support for debian environments with u...

...nknown runlevel