directory <=> file fix
CWD working