Fixing fatal error if calling upgrade in a non chamilo folder.