fix bug with -i when moving directories