Creating directory path when doing remove()