Fixed path initialization in codegen
Added link args feature, until we figure out the correct way