expand paths in ruby commands