only chown when directory exists