Check if is directory prior to trying to write
Check if is directory prior to trying to write

aafa/android-sdk-plugin,dant3/android-sdk-plugin,dant3/android-sdk-plugin,pfn/android-sdk-plugin,aafa/android-sdk-plugin,pfn/android-sdk-plugin,aafa/android-sdk-plugin,pfn/android-sdk-plugin