Added missing .parent(); in getDir in Shadow