Fix file extensions in default hooks