Use initial directory when opening a file.

Signed-off-by: Mariusz Fik <fisiu@fidano.pl>