Fix import to properly strip the filenames.