+++Methods to remove folder content recursively added in common.js

+++Regex expression modified in order to allow a whitespace at the end.
+++The pdf files that are not processed properly and removed form pdfs directory (a message is also displayed in front end)