fix type returning absolute paths for the file() function