Remove relative path from ruby code.