Replace current removal by dynamic method (#179)
Replace current removal by dynamic method (#179)

This commit fixes #177 and closes #178
Changes made in this commit were suggested by @mshima
SBoudrias/mem-fs-editor