fixes #252 - Path not being removed properly