fixed bug with not properly changing cwd to calling path
fixed update's initial id cache check
removed unneeded calling var