Fixing a directory path in explicit_cast