added preventive check to verify execution as root
avoid need of writable share in SERVER mode by directly writing the stdout to the local SMB server