Check if file exist before using the cat command. Fixes #50.