define function 'cur' to open current folder where current buffer is.