Check first for dart/ directory before attempting to move it