Fixed the problem where the scripts like calcgrade and checksyscalls could not be run from any folder except script.