$PATH only present when Atom is launched from command line

I am on ubuntu and the error fire even when launched from command line, even after adding the :

process.env.PATH = ["/usr/local/bin", process.env.PATH].join(":")

line in ~/.atom/init.coffee (same for OS X)