def run_index_process
      readme, writeme = IO.pipe
      p1 = fork {
        # Stop cd function from blocking on fork
        STDOUT.reopen(writeme)
        readme.close

        index_process unless File.exists?(INDEXER_LOCK_PATH)
      }
      Process.detach(p1)
    end
def run_index_process
      readme, writeme = IO.pipe
      p1 = fork {
        # Stop cd function from blocking on fork
        STDOUT.reopen(writeme)
        readme.close

        index_process unless File.exists?(INDEXER_LOCK_PATH)
      }
      Process.detach(p1)
    end
spins off a background process to update the cache file