Helper to change dir and list files.