Update logger.sh

Made output directory an environmental variable