Improve remove logic
Improve remove logic

Thanks @kou1okada

http://github.com/transcode-open/apt-cyg/commit/1b3c49d#commitcomment-6329645

jobscale/apt-cyg,balanx/apt-cyg,ilatypov/apt-cyg,transcode-open/apt-cyg