Fixed error with empty shell provisioner

`read` returns nil on empty files, so the call to `valid_encoding` fails.