Set filetype only if specified in Given block