Fix for the bmrb.read and bmrb.write user function backends.
The directory argument name change from dir to directory in the prompt interface was not compatible
with the auto-generation system. Therefore the argument has been changed to 'dir' everywhere.