Simplify disable initial directory code.