Handle non-Rails environments