Shell script to get the total playing time of media files in a directory