[ADD] check upload folder function

This function will check if a folder that you require exists and if
your uploads folder is writable