Removed incorrect truename code; only expand directories.