Improved logic for finding USER and SCRIPT_PATH
Improved logic for finding USER and SCRIPT_PATH

Simplified functionality by the use of logname, also fixed a bug
in the way SCRIPT_PATH is set.

jonasbjurel/OPNFV-Playground,fdegir/OPNFV-Playground,jonasbjurel/OPNFV-Playground,jonasbjurel/OPNFV-Playground,fdegir/OPNFV-Playground,fdegir/OPNFV-Playground