add functions to enable open file with external applications in dired