init workdir to rails root if workdir is not set, needed for travis