Replaced all sprintf() calls with relative paths.