Linux distributions specific + minor shell safety belts

Reason for alternative syntax proposal is part of the commit comments.