Adding a failsafe output directory
Adding an appropriate warning message