fix kast --directory

Fix a regression where kast --directory and kompile --directory got out of sync