handling no port in file path when it is restored - for s3n