install: Fix string formatting in an error
install: Extract function for creating absolute paths and reuse it