configure.ac: Added conditional check for files existence