Bundle: Fixes misc. issues. (#1401)

-Prevents from crashing on delete.
-Don't run when file is not checked-out by
 source-control.