changed local sites to use current execution directory instead of getcwd() in case the dir is changed during execution