Mostly code for Nuke. Some refactoring of code in general

Now the NUKE_PATH variable is set in "project_env.sh" so we
actually have a Nuke environment!