Adds file_exists check when removing a module