try/catch to check if files are accessable

Signed-off-by: TheTesla <stefan.helmert@gmx.net>