Changed system commands depends on OS version

fixes bug #1214120

Change-Id: I3357dd04911a92a4d69fb8d3469f093b0c6b0737