Added error checking in makeplaylist, mkpls and mkm3u functions.