changed the way of getting user home as well as how to copying job script in user home