fix syntax error in Makefile

fix the syntax error on Makefile target restartservices
remove the comments and add an `if` at the end block