New postgres detection without bug that tries to add -L with no directory to link path