CP-9798: Use more generic paths in specfile
CP-9798: Fix uninitialized warning

Fix a warning with newer compilers.