As far as I can tell, returning anything other than a filename or $null would break backwards compatibility because these are the only values that $sfile() has ever returned. Every script that uses $sfile() and checks if it returns $null would be broken if it returned -1.