fix bug in logfileindex that stopped us deleting by prefix
cosmetics/lint warnings fix