Fixed issue where on load metric calculation wasn't working for non ruby projects.