Do not try to create directories upon getting file path

Fixes #621

Signed-off-by: Michal Čihař <michal@cihar.com>