core: support resolve None as file

Change-Id: Ie27949f3b7ef75236adb67be8c1b38fd981ec75f
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>