Extra debug in tcp and ssl client
No random debug if none specified
Solve problems with debug level
Fix can't find directory