Improve the hook scripts

    * Do not test if the file exist. It blocks the usage of 'export PRE_SOURCE_H
    * Match the similar declaration in the git & svn scripts