Short circut file checking if it's .rb

Makes things a little faster.