Changed all library paths to use environ