Bash scripting, rename and test date