Supporting Ghost Deployment in Windows environment

Fix for issue https://wso2.org/jira/browse/CARBON-15022