change file extensions to .rb and add ruby environment header to files that don't have it