listdir doesnt work as expected.