Revert "Fix the logfile location, remove the debug statement"

This reverts commit 6a1e0111e0a49ffb1e3fa0351cb7434c4186fce7.
The final fix for logfile path