Fix passing options and remove hardcoded scripts directory

Take options from property `options` of generator instance instead `env` object.
Remove hardcode `scripts` directory for generation components. Because some project
does not follow convention `src/scripts/components`.