Minor adjustments to get the new NSURL method of reading file info working

We have to revert back to the 'old' way for socket type files because the NSURL method doens't work