Added rsync and removal of added dir so there is only one core folder
apparently importing os at the top of the file doesn't make it global...
don't commit angry.