Fixed: redirect both stderr and stdout + append to log file