Check if file is exist before continuing.

Signed-off-by: Toha <tohenk@yahoo.com>