allow dir to be optional param for rspec generator

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