Fix: Script not creating the correct dir path