Page Layouts and Master Pages fail to update in SharePoint 2013

I have been tearing what’s left of my hair out over this. After deploying a master page on SharePoint 2013, it will not update using new versions of the file. This is because I was using SharePoint 2010 style markup in my elements file and forgetting to use new SharePoint 2013 attributes.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 <Module Name="MasterPage" Url="_catalogs/masterpage" List="116">
 <File Url="InformationPortal.master" Path="MasterPage\InformationPortal.master" Type="GhostableInLibrary">
 <Property Name="UIVersion" Value="15"></Property>
 <Property Name="MasterPageDescription" Value="Master page used with UniCarriers Information Portal." />
 <Property Name="ContentType" Value="$Resources:cmscore,contenttype_masterpage_name;" />
 </File>
 </Module>
</Elements>

The file will not update unless the attribute ReplaceContent is set to true. You should also set the Level attribute to Published.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 <Module Name="MasterPage" Url="_catalogs/masterpage" List="116">
 <File Url="InformationPortal.master" Path="MasterPage\InformationPortal.master" Type="GhostableInLibrary" 
 Level="Published" ReplaceContent="true">
 <Property Name="UIVersion" Value="15"></Property>
 <Property Name="MasterPageDescription" Value="..." />
 <Property Name="ContentType" Value="$Resources:cmscore,contenttype_masterpage_name;" />
 </File>
 </Module>
</Elements>