Check the order of that hook setting the Project/Account Name, create another hook which runs after this hook (if the other hook is order 3, make your hook order 4)
You can qmgr: list hooks @default, get the name of the hook and you can find that hook in this location $PBS_HOME/server_priv/hooks
Not recommended to edit hook directly. It is better to copy that hook source from $PBS_HOME/server_priv/hooks and re-import it, so that PBS Server can propogate the changes (where required to PBS Moms).