Update prehook - use script path as reference, fix pubspec comment