Print error if opening path fails. Fixes #2