Added check if local resource is mounted