Added version global variable and fixed paths on build