Just in case the prefix or lib directory don't exist yet.