Fix returning list of files in nested dirs - don't cut first symbol.

And fix a minor PyCharm warning about var not being initialized.

Change-Id: I260efa653c1345597499914c34339e7b7b6908bd
Closes-Bug: #1274851