move redis-scan file to the lib folder