fixed bug where PATH was not permanently set