allow dir to be optional param for rspec generator

This is probably a better fix for this commit

[Fixes #131]