fix check for remote fs