please move this file to bin/ That way it's also accessible if you install the gem. I suspect that line 2 and 3 shouldn't be necessary in that case.