A planning application for two dwellings on a site in Cookstown has been granted permission after being initially refused.