Used faster access() to check for file existence and more secure snprintf() instead of sprintf().

Change-Id: I8421bef12e3dcf57b23afeaf387bd568196cb85c
1 file changed