Install hook - set pathauto and book variable