move original compile script to a separate file

move original compile script to a separate file, so that we can execute
multiple bash and ruby scripts