TMP_DIR added, replace LOGSLOCATION and SCRIPTBACKUPLOCATION.
LOGSLOCATION and SCRIPTBACKUPLOCATION defined with TMP_DIR