allow generate prc command run for all book
fix rating test fail

because of the locale middleware was disabled
fix test due to change of locale settings
use current log dir inside project