Fixed issue with directory remove;