Fix for warning(#1)

* require dired
* check Emacs has called-interactively-p, if Emacs does not have it
  then uses 'interactive-p'