Support specifying rails env after rake command

Fixes #179