Remove var-directory part