Fixed #4020 init.d check

Fix for the init.d script check task #4020