Fix rake and rails path for rails 3.x tests