Changed the bash lowercase conversion to use awk so it works on mac