Fix the launcher creation script to look in the right directory
This change makes write_preload look for the template in the directory
where it resides instead of looking for it in the current directory.