Move dired specific function to the dired config