generate scripts in a subdir to avoid problems configuring in top dir