Resolve the scriptpath