Moved folder-hook . before the other hooks.

Else the variables are not set properly.