Move scripts to lib folder