fixing deployment to use dirname of file referenced from cli. and adding echo statements, linking of current/ dir, and restart.