bash script to rename improper file names