Test if base folder exists.

Fix for issue when applying amp to blank Alfresco.

(commons-io declaration might be useful)