added removal of workdir if it exists from a previous job and fixed calls to remote server hooks.
updated hook calls to use hooks in the directory the script is called in
fixed nitelite-settings path