Bash script for moving files into folders named after their extension