game: use Platform class in Script class

make lua chunk loading code use Platform class
instead of directly manipulating files