Fix for S004

deleting duplicate methods for S004
updating check condition to only check for unsecured mktemp