updated root directory detection

For projects where node_modules installed not in subfolders need this feature:
detect real root directory using this command: "git rev-parse --show-toplevel"