Fix log file generation

`tee` did not work for me when appending log files on Windows 7 / Server 2008 R2. Also Includes %~dp0 current directory variable to simplify the run command.