```coffeescript
fs = require 'fs'
path = require 'path'
delegate = require 'atom_delegate'
optimist = require 'optimist'

atomApplication = null

delegate.browserMainParts.preMainMessageLoopRun = ->
  commandLineArgs = parseCommandLine()
  require('module').globalPaths.push(path.join(commandLineArgs.resourcePath, 'src'))
  AtomApplication = require('atom-application')
  atomApplication = new AtomApplication(commandLineArgs)

getHomeDir = ->
  process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME']

parseCommandLine = ->
  args = optimist(process.argv[1..]).argv
  executedFrom = args['executed-from']
  pathsToOpen = if args._.length > 0 then args._ else null
  testMode = true if args['test']
  version = String fs.readFileSync(path.join(__dirname, '..', '..', 'version'))

  if args['resource-path']
    resourcePath = args['resource-path']
  else if args['dev']
    resourcePath = path.join(getHomeDir(), 'github', 'atom')

  try
    fs.statSync resourcePath
  catch e
    resourcePath = path.dirname(__dirname)

  {resourcePath, executedFrom, pathsToOpen, testMode, version}
```

Add back coffee-script require but don't assign it
user
```coffeescript
fs = require 'fs'
path = require 'path'
delegate = require 'atom_delegate'
optimist = require 'optimist'
require 'coffee-script'

atomApplication = null

delegate.browserMainParts.preMainMessageLoopRun = ->
  commandLineArgs = parseCommandLine()
  require('module').globalPaths.push(path.join(commandLineArgs.resourcePath, 'src'))
  AtomApplication = require('atom-application')
  atomApplication = new AtomApplication(commandLineArgs)

getHomeDir = ->
  process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME']

parseCommandLine = ->
  args = optimist(process.argv[1..]).argv
  executedFrom = args['executed-from']
  pathsToOpen = if args._.length > 0 then args._ else null
  testMode = true if args['test']
  version = String fs.readFileSync(path.join(__dirname, '..', '..', 'version'))

  if args['resource-path']
    resourcePath = args['resource-path']
  else if args['dev']
    resourcePath = path.join(getHomeDir(), 'github', 'atom')

  try
    fs.statSync resourcePath
  catch e
    resourcePath = path.dirname(__dirname)

  {resourcePath, executedFrom, pathsToOpen, testMode, version}
```
assistant