i think you want to use ENV[path_key] here instead of ENV['PATH']