Cleaned up debug util: Removed hardcoded paths and unnecessary code.

1. Removed hardcoded paths to debug file - caused path not found error.
2. Debug output now stored in separate directory in user's home folder.
3. Remove open/close code before debug function.