Update content to check for markup files and directory properly