Write log to debug file, if LDTP_DEBUG_FILE environment variable is set with the file name

Ex: export LDTP_DEBUG_FILE=/tmp/ldtp.log
Note: File contents will be appended