MRI: less `strlen` calls, use custom script's filename
MRI: add option to use a script's name as filename