expand MRU_File before use
use write-then-rename to perserve file on error

and also take sudo into account
use 'x' to delete items from list
fix emptying the buffer before updating
keep last pattern when updating