added the slashes to the dir path not the code.