Fix for S004

deleting duplicate methods for S004
updating check condition to only check for unsecured mktemp
Merge pull request #13 from pritidesai/fix-for-S004

Fix for S004