Handle FileNotFoundException in generateFor. Fix for #28