Added a shebang line.
Use command_exists function instead of which. Which incidentally does not return exit codes.
Changed a bunch of path stuff.
Use normal intensity instead of bright.