adding auto path detection for PhoneGap audio