added input variables checking to redirectlog.src.sh