Fix javascript error
Check if cgi-bin directory exists before deleting cgiscripts