VERY HACKY fixed changing directories with a workaround