Added --root argument

feel free to comment on it... it's my first ruby patch ever ;)