Ensured that path exists, which is tried to be removed
Changed rmdir() usages to static::removeDirectory() class method usage