Common.File: replaced implementation of 'dirname' with 'System.FilePath.takeDirectory'