Fixed problems with postgres paths