Add full path for dmesg and replace backtick by exec
Add -n for 2 remaining sysctl calls, also replace backtick by exec
Remove more backtick abuse
Replace some backticks by exec ans simplify commands