fix call to member function on a non-object when trying to delete a file one above root where a file with same name in root exists, fixes #49