injecting __dirname and __filename
adding .cls command
removing cls command
properly resolving __dirname, __filename and require and attaching to global context